package org.usc.file;

import org.apache.struts2.ServletActionContext;


import com.dao.HomeworkDao;
import com.opensymphony.xwork2.ActionSupport;

public class ScoreAction  extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String setScore() {
		int scores =	Integer.parseInt(ServletActionContext.getRequest().getParameter("score"));
		String name = ServletActionContext.getRequest().getParameter("relname");
		
		HomeworkDao dao = new HomeworkDao();
		
		if(dao.setscore(scores, name)){
			
			return SUCCESS;
		}
		return null;
		
		
		
	}

}
